import data from '../mock'

export interface IState {
	list: IListItem[]
}
export interface IType {
	name: string
}
export interface IListItem {
	title: string
	url: string
	type: IType[]
	collect: number
	like: number
	createAt: string
	pick: boolean
	key: string
}
export interface IAction {
	type: string
	payload: any
}
const initState = {
	list: data.list
}

const reducer = (state = initState, action: IAction) => {
	switch (action.type) {
		default:
			return state
	}
}


export default reducer